import axios from '&helpers/axios'

// 获取所有一级指标点
export const reqFirstRequirement= () => {
  return axios.get('/firstRequirement/all')
}

// 更新一个一级指标点
export const reqUpdateFirstRequirement = (params) => {
  return axios({
    method: 'post',
    url: '/firstRequirement/update',
    data: params
  })
} 

// 新增一个一级指标点
export const reqAddFirstRequirement = (params) => {
  return axios({
    method: 'post',
    url: '/firstRequirement/inset',
    data: params
  })
}

// 删除一个一级指标点
export const reqDelFirstRequirement = (params) => {
  return axios({
    method: 'get',
    url: '/firstRequirement/delete',
    params: params
  })
}